import time

from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from zhokao2.page import a3m
class Page(a3m):
    dzgl=(By.XPATH,'/html/body/div[5]/div[1]/div[2]/div[4]/div[2]/ul/li[1]/a')
    dy1=(By.XPATH,'/html/body/div[5]/div[2]/div/div[1]/span')
    tj=(By.XPATH,'/html/body/div[5]/div[2]/div/div[1]/a')
    dq=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[1]/div[1]/div/div/input')
    dq1=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[1]/div[1]/div/dl/dd[2]')
    sq=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[1]/div[2]')
    sq1=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[1]/div[2]/div/dl/dd[2]')
    qy=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[1]/div[3]/div/div/input')
    qy1=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[1]/div[3]/div/dl/dd[7]')
    name=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[2]/div/input')
    sjh=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[3]/div/input')
    jd=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[5]/div/textarea')
    tj1=(By.XPATH,'//*[@id="layui-layer1"]/div[2]/div/div/form/div[6]/div/button[1]')
    def yx1(self):
        time.sleep(2)
        self.click(self.dzgl)
        time.sleep(2)
        print(self.test(self.dy1))
        self.click(self.tj)
        time.sleep(2)
        self.click(self.dq)
        time.sleep(2)
        self.click(self.dq1)
        time.sleep(2)
        self.click(self.sq)
        time.sleep(2)
        self.click(self.sq1)
        time.sleep(2)
        self.click(self.qy)
        time.sleep(2)
        self.click(self.qy1)
        time.sleep(2)
        self.send_keys(self.name,'苗召洋')
        time.sleep(2)
        self.send_keys(self.sjh,'15649920329')
        time.sleep(2)
        self.send_keys(self.jd,'南口镇')
        time.sleep(2)
        self.click(self.tj1)
        time.sleep(5)